package Controller.Game;

import javax.swing.JFrame;

import Utils.MediaUploder;
import View.Game.ResultPanel;

public class ResultPanelController {
	
	private ResultPanel resultpanel_;
	private MediaUploder media_;
	private JFrame principalFrame_;
	
	public ResultPanelController(Boolean won, MediaUploder media, JFrame principalFrame){
		resultpanel_ = new ResultPanel(won, media);
		resultpanel_.setVisible(true);
		principalFrame_ = principalFrame;
		media_ = media;
		
		principalFrame_.getContentPane().removeAll();

		principalFrame_.getContentPane().add(resultpanel_);
		principalFrame_.repaint();
		principalFrame_.setVisible(true);
	}

}
